package com.pur.zsms.common.exception;
/**
 * 可检测的异常，需要程序自行处理�?�出现该类异常时，默认情况下，spring不进行事务回�?
 */
@SuppressWarnings("serial")
public class CheckedException extends java.lang.Exception implements Exceptional {

	/**
	 * 异常信息
	 */
	private String messageKey ;
	/**
	 * 异常信息中的变量
	 */
	private String[] messageArgs ;
	

	public String getMessageKey() {
		return this.messageKey;
	}

	public String[] getMessageArgs() {
		return this.messageArgs ;
	}

	public CheckedException(String messageKey){
		super();
		this.messageKey = messageKey ;
	}
	
	public CheckedException(String messageKey, Throwable cause) {
        super(cause);
        this.messageKey = messageKey ;
    }
	
	public CheckedException(String messageKey,String[] messageArgs) {
        super();
        this.messageKey = messageKey ;
        this.messageArgs = messageArgs ;
    }
	
	public CheckedException(String messageKey,String[] messageArgs, Throwable cause) {
        super(cause);
        this.messageKey = messageKey ;
        this.messageArgs = messageArgs ;
    }
}
